cmake_minimum_required(VERSION 3.0.0)
project(XboDemo VERSION 0.1.0 LANGUAGES CXX)

include(CTest)
enable_testing()

find_package(PkgConfig REQUIRED)
pkg_check_modules(GLIB2 REQUIRED IMPORTED_TARGET glib-2.0)
pkg_check_modules(GSTREAMER REQUIRED IMPORTED_TARGET gstreamer-1.0)
pkg_check_modules(GSTREAMER_AUDIO REQUIRED IMPORTED_TARGET gstreamer-audio-1.0)
pkg_check_modules(GSTREAMER_PBUTILS REQUIRED IMPORTED_TARGET gstreamer-pbutils-1.0)
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)


aux_source_directory(./ SRCS)

add_executable(XboDemo ${SRCS})

target_link_libraries(XboDemo PkgConfig::GLIB2 PkgConfig::GSTREAMER PkgConfig::GSTREAMER_AUDIO PkgConfig::GSTREAMER_PBUTILS PkgConfig::GTK)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
